package com.authsphere.security.token.common;

import org.springframework.security.core.Authentication;

/**
 * @program: AuthSphere
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/12 09:35
 **/
public interface AuthenticationKeyGenerator {

    /**
     * extract key
     * @param authentication authentication
     * @return a unique key identifying the authentication
     */
    String extractKey(Authentication authentication);
}
